package com.niit.az;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

import androidx.appcompat.app.AppCompatActivity;

public class Welcome extends AppCompatActivity {

    private Button btn_welcome;
    private Button btn_personal;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_welcome);

        btn_welcome = findViewById(R.id.btn_welcome);
        btn_personal = findViewById(R.id.btnn_personal);

        btn_welcome.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent myIntent=new Intent(Welcome.this,MainInterface.class);
                startActivity(myIntent);
            }
        });

        btn_personal.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent myIntent=new Intent(Welcome.this,Personal.class);
                startActivity(myIntent);
            }
        });
    }
}